﻿using System.Windows;
namespace MyFloridaHouse.libSvOpenDistricts.PDF
{
    public class HouseMapLabel
    {
        public double originWidthPercent { get; set; }
        public double originHeightPercent { get; set; }
        public string text { get; set; }
        public int fontSize { get; set; }

        public HouseMapLabel( double originWidthPercent, double originHeightPercent, string text, int fontSize)
        {
            this.originWidthPercent = originWidthPercent;
            this.originHeightPercent = originHeightPercent;
            this.text = text;
            this.fontSize = fontSize;
        }


        public PDFPoint GetDrawingOrigin(PDFPoint mapBorderOrigin, double mapBorderWidth, double mapBorderHeight)
        {
            PDFPoint drawingCursor = new PDFPoint(mapBorderOrigin);
            drawingCursor.AddX(mapBorderWidth * originWidthPercent);
            drawingCursor.AddY(mapBorderHeight * originHeightPercent);

            return drawingCursor;
        }
    }
}
